package com.objetdirect.gwt.umldrawer.client;

import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;

public class AboutUsPageContent implements PageContent {

	private VerticalPanel mainPanel = new VerticalPanel();
	private VerticalPanel aboutUsContent = new VerticalPanel();
	private HorizontalPanel aboutUsWithImage = new HorizontalPanel();
	private VerticalPanel aboutUsPanel = new VerticalPanel();
	private Image umlImage = new Image();
	private Label aboutUs = new Label();
	private Image header = new Image();
	private Image footer = new Image();
	
	@Override
	public void setPageContent() {
		
		header.setUrl("images/header.png");
		header.setWidth("1201px");
		header.setStyleName("headerImage");
		
		aboutUs.setText("About Us");
		aboutUs.setStyleName("pagesHeader");
		
		aboutUsContent.add(new HeaderButtons().getHeaderButtons());
		aboutUsContent.add(aboutUs);
		aboutUsContent.add(new HomeText().getText());
		
		footer.setUrl("images/footer.png");
		footer.setWidth("1201px");
		
		umlImage.setUrl("images/image.jpg");
		umlImage.setStyleName("homeLeftImage");
		
		aboutUsWithImage.add(umlImage);
		aboutUsWithImage.add(aboutUsContent);
		
		aboutUsPanel.add(aboutUsWithImage);
		aboutUsPanel.add(new PrivacyBar().getprivacyBar());
		aboutUsPanel.setStyleName("border");
		
		mainPanel.add(header);
		mainPanel.add(aboutUsPanel);
		mainPanel.add(footer);
	}

	@Override
	public VerticalPanel getPageContent() {
		setPageContent();
		return mainPanel;
	}

}
